<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>flex</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        header {
            width: 100%;
            display:flex ;
        }
        header a {
            flex: 1;
        }
        header a img {
            width: 100%;
            height: 200px;
        }
        main {
            width: 100%;
            padding:0 10px;
            box-sizing:border-box ;
        }
        main .item {
            background-color: red;
            width: 100%;
            height: 100px;
            border-radius: 10px;
            margin-top: 10px;
            display: flex;
        }
        main .item:nth-of-type(2){
            background-color: orange;
        }
        main .item:nth-of-type(3){
            background-color: blue;
        }
        main .item .left{
            flex: 1;
            text-align: center;
            line-height: 100px;
        }
        main .item .right{
            flex: 2;
            display: flex;
            flex-wrap: wrap;
        }
        main .item .right a {
            display: block;
            width: 50%;
            color: #fff;
            text-decoration: none;
            font-size: 15px;
            line-height: 50px;
            text-align: center;
            border-left: 1px solid #fff;
            border-bottom: 1px solid #fff;
            box-sizing: border-box;
        }
        main .item .right a:nth-last-of-type(2) {
            border-bottom: none;
        }
        main .entry {
            width: 100%;
            height: 200px;
            margin-top: 10px;
            display: flex;
        }
        main .entry a {
            width: 50%;
            display: flex;
            justify-content: space-around;
        }
        main .entry a img{
            width: 80%;
        }
        footer {
            margin-top: 10px;
            width: 100%;
            font-size: 13px;
        }
        footer nav{
            display: flex;
            border-bottom: 1px solid #ccc;
            border-top: 1px solid #ccc;
        }
        footer nav a{
            flex: 1;
            line-height: 30px;
            text-decoration: none;
            text-align: center;
            color: #999;
        }
        footer .link {
            text-align: center;
            line-height: 25px;
        }
        footer .link a+a{
            border-left: 1px solid #ccc;
            padding-left: 3px;
        }
        footer .copyRight {
            text-align: center;
        }
    </style>
</head>
<body>
<!--头部-->
<header>
    <a href="#">
        <img src="https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=3673191535,4025234405&fm=27&gp=0.jpg"
             alt="">
    </a>
</header>
<!--头部-->
<!--主要内容-->
<main>
    <section class="item">
        <div class="left">吃喝玩乐</div>
        <div class="right">
            <a href="#">美食</a>
            <a href="#">足浴</a>
            <a href="#">电影院</a>
            <a href="#">KTV</a>
        </div>
    </section>
    <section class="item">
        <div class="left">吃喝玩乐</div>
        <div class="right">
            <a href="#">美食</a>
            <a href="#">足浴</a>
            <a href="#">电影院</a>
            <a href="#">KTV</a>
        </div>
    </section>
    <section class="item">
        <div class="left">吃喝玩乐</div>
        <div class="right">
            <a href="#">美食</a>
            <a href="#">足浴</a>
            <a href="#">电影院</a>
            <a href="#">KTV</a>
        </div>
    </section>
    <section class="entry">
        <a href="#">
            <img src="https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3395395711,851131180&fm=27&gp=0.jpg"
                 alt="">
        </a>
        <a href="#">
            <img src="https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=1813349919,2247168186&fm=27&gp=0.jpg"
                 alt="">
        </a>
    </section>
</main>
<!--主要内容-->
<!--底部-->
<footer>
    <nav>
        <a href="#">电话预定</a>
        <a href="#">手机下单</a>
        <a href="#">我的订单</a>
    </nav>
    <p class="link">
        <a href="#">网站地图</a>
        <a href="#">ENGLISH</a>
        <a href="#">电脑版</a>
    </p>
    <p class="copyRight">&copy; 2019 吃喝玩乐</p>
</footer>
<!--底部-->
</body>
</html>